package demo07.remote.object;

public class TV {
	String location;
	int channel;//通道

	public TV(String location) {
		this.location = location;
	}

	public void on() {
		System.out.println("打开电视");
	}

	public void off() {
		System.out.println("关闭电视");
	}

	public void setInputChannel() {
		this.channel = 3;
		System.out.println("频道设置为VCR。");
	}
	

}
